import rxAjax from '@/assets/js/ajax.js';

//自定查询 api接口
export const FormCustomQueryApi = {};

FormCustomQueryApi.baseUrl= '/api-form/form/core/formCustomQuery';

/**
 * 加载自定义查询。
 */
FormCustomQueryApi.getByKey=function(params) {
    let  url= "/api-form/form/core/formCustomQuery/getByKey";
    return rxAjax.get(url,params);
}

//执行自定义SQL
FormCustomQueryApi.doQuery=function(alias,parameter){
    let  url = FormCustomQueryApi.baseUrl + '/queryForJson_'+alias;
    return rxAjax.postForm(url,parameter);
}

export  default FormCustomQueryApi;

